package com.ruoyi.kiku.service;

import java.util.List;
import com.ruoyi.kiku.domain.KikuRelationalNews;

/**
 * 关联新闻Service接口
 *
 * @author TT
 * @date 2025-09-03
 */
public interface IKikuRelationalNewsService
{
    /**
     * 查询关联新闻
     *
     * @param id 关联新闻主键
     * @return 关联新闻
     */
    public KikuRelationalNews selectKikuRelationalNewsById(Long id);

    /**
     * 查询关联新闻列表
     *
     * @param kikuRelationalNews 关联新闻
     * @return 关联新闻集合
     */
    public List<KikuRelationalNews> selectKikuRelationalNewsList(KikuRelationalNews kikuRelationalNews);

    /**
     *  根据新闻id查询关联新闻列表
     * @param newsId 新闻id
     * @return List<KikuRelationalNews>
     */
    public List<KikuRelationalNews> selectKikuRelationalNewsListByNewsId(Long newsId);

    /**
     * 新增关联新闻
     *
     * @param kikuRelationalNews 关联新闻
     * @return 结果
     */
    public int insertKikuRelationalNews(KikuRelationalNews kikuRelationalNews);

    /**
     * 修改关联新闻
     *
     * @param kikuRelationalNews 关联新闻
     * @return 结果
     */
    public int updateKikuRelationalNews(KikuRelationalNews kikuRelationalNews);

    /**
     * 批量删除关联新闻
     *
     * @param ids 需要删除的关联新闻主键集合
     * @return 结果
     */
    public int deleteKikuRelationalNewsByIds(Long[] ids);

    /**
     * 删除关联新闻信息
     *
     * @param id 关联新闻主键
     * @return 结果
     */
    public int deleteKikuRelationalNewsById(Long id);
}
